<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:useBean id="loginBean" class="mybean.data.login" scope="session"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改地区单车情况</title>
	<link rel="stylesheet" type="text/css" href="css/reset.css">
	<link rel="stylesheet" type="text/css" href="css/common.css">
	<link rel="stylesheet" type="text/css" href="css/index-1.css">
	<link rel="stylesheet" type="text/css" href="css/index-2.css">
</head>
<body>
	<%@ include file="Ahead.txt" %>
	<%	request.setCharacterEncoding("utf-8");
		if(loginBean==null){
			out.println("<script language = javascript>alert('请重新登录!');");
			out.println("location.href='index.jsp'</script>");
			return;
		}
		else{
			boolean b=loginBean.getLogname()==null || loginBean.getLogname().length()==0;
			if(b){
				out.println("<script language = javascript>alert('请重新登录!');");
				out.println("location.href='index.jsp'</script>");
				return;
			}
		}
		String id= request.getParameter("id"),//获取需要修改的信息
			name= request.getParameter("name"),
			number= request.getParameter("number");
	%>
	<center class="Admin-content">      
    <form  action ="changeDServlet" method="post"> 
    <table>
    	<tr><td height=40px>地区编号：
    	 	<input type="text" readonly="readonly" value="<%=id %>" name= "id" style="height:25px"> </td></tr>
        <tr><td height=40px>地区名称：
        	<input type="text" readonly="readonly" value="<%=name%>"  name="name" style="height:25px"></td></tr>
        <tr><td height=40px>单车数量：
        	<input type="text" value="<%=number%>"  name="number" style="height:25px"></td></tr>
        <tr><td><br><center> <button type="submit" class="submit">修改</button>&nbsp;&nbsp;
			<div class="tooltip" style="color: #004b97">提示
  				<span class="tooltiptext">只能单车数量</span>
			</div>
		</center></td></tr>
    </table>   
	</form> 
</center>
</body>
</html>